package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 付款表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "payment")
public class Payment implements Serializable {
    /**
     * 付款编号
     */
    @TableId(value = "payment_no", type = IdType.INPUT)
    private Integer paymentNo;

    /**
     * 付款账户
     */
    @TableField(value = "payment_name")
    private String paymentName;

    /**
     * 付款方式
     */
    @TableField(value = "payment_method")
    private String paymentMethod;

    /**
     * 付款金额
     */
    @TableField(value = "payment_amount")
    private BigDecimal paymentAmount;

    /**
     * 付款备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 退款状态
     */
    @TableField(value = "refund_status")
    private Integer refundStatus;

    /**
     * 审核状态(0审核中，1通过，2拒绝)
     */
    @TableField(value = "review_status")
    private Integer reviewStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 关联id
     */
    @TableField(value = "correlation_id")
    private Integer correlationId;

    /**
     * 1采购订单预付款, 2采购入库付款
     */
    @TableField(value = "correlation_option")
    private Integer correlationOption;

    private static final long serialVersionUID = 1L;
}